// import request from '@/utils/request.js'
import request from '@/utils/mgop'

//课程列表
export function getCourseList(params) {
  return request({ api: 'mgop.hp.reduce.coursesList', type: 'GET', params })
}
//课程详情
export function getCourseInfo(id) {
  return request({
    api: 'mgop.hp.reduce.coursesInfo',
    type: 'GET',
    data: { id }
  })
}
//课程点单
export function courseOrder(id, data) {
  return request({
    api: 'mgop.hp.reduce.coursesOrder',
    type: 'POST',
    data: { ...data, id }
  })
}
//课程类型
export function getCourseType() {
  return request({ api: 'mgop.hp.reduce.coursesType', type: 'GET' })
}
